//
//  InputAlertController.m
//  预购清单
//
//  Created by  on 2022/10/16.
//

#import "InputAlertController.h"

@interface InputAlertController ()

@end

@implementation InputAlertController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}
- (IBAction)actionForBtn:(UIButton *)sender {
    if (sender.tag == 201) {
        [self dismissViewControllerAnimated:NO completion:nil];
    }else{
        if (self.input.text.length <= 0) {
            return [CCHud msg:LS(@"请输入内容")];
        }
        if (self.block) {
            self.block(self.input.text);
        }
        [self dismissViewControllerAnimated:NO completion:nil];
    }
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
